package net.dreamlu.qa.controller;

import net.dreamlu.qa.interceptor.UserInterceptor;
import net.dreamlu.qa.model.Answer;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;

/**
 * 问题控制器
 * @author chunmeng.lu
 *
 */
public class AnswerController extends Controller {
	
	@Before(UserInterceptor.class)
	public void answer (){
		Answer answer = getModel(Answer.class);
		answer.addAnswer(answer);
		render("");
	}
}
